package com.aqie.libfactory.model.db.view;


import com.aqie.libcommon.model.Author;
import com.aqie.libfactory.model.db.AppDatabase;
import com.raizlabs.android.dbflow.annotation.Column;
import com.raizlabs.android.dbflow.annotation.QueryModel;

/**
 * 用户基础信息的Model，可以和数据库进行查询
 */
@QueryModel(database = AppDatabase.class)
public class UserSampleModel implements Author {
    private String userId;
    @Column
    private String username;
    @Column
    private String phone;
    @Column
    private String avatar;
    @Column
    private String token;

    @Override
    public String getUserId() {
        return userId;
    }

    @Override
    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String getUsername() {
        return username;
    }

    @Override
    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String getPhone() {
        return phone;
    }

    @Override
    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String getAvatar() {
        return avatar;
    }

    @Override
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
